package com.aitoedu.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 预习状态表
 * @TableName preview_status
 */
@TableName(value ="preview_status")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PreviewStatus implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 预习内容id
     */
    private Long pid;

    /**
     * 学生id
     */
    private Long sid;

    /**
     * 某一课程某一章节某一预习内容的状态(0为未预习,1为已预习)
     */
    private Integer preStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}